import { createApp } from 'vue'
import App from './App.vue'
import '@renderer/assets/tailwind.css'
import '@renderer/assets/glogal.less'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '@renderer/router/index'
import { createPinia } from 'pinia'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()
const app = createApp(App)
app.use(ElementPlus)
app.use(router)
app.use(pinia)
pinia.use(piniaPluginPersistedstate)
app.use(ElementPlus, {
  locale: zhCn
})
app.mount('#app')
